]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[Workspace] Disconnect reposition handler when leaving overview
authorFlorian Müllner <fmuellner@src.gnome.org>
Sun, 14 Mar 2010 14:47:42 +0000 (15:47 +0100)
committerFlorian Müllner <fmuellner@src.gnome.org>
Wed, 17 Mar 2010 15:38:03 +0000 (16:38 +0100)
As the repositioning after closing a window preview is delayed, it is
possible that the timeout is triggered while leaving the overview. In
that case the previews move to the new overview position and are changed
abruptly to the original window position when the overview zoom is done.
To prevent this, disconnect the handler when leaving the overview.

js/ui/workspace.js

index 20d5fd27c03e924f5af1683f14f155f197fcd6e9..0b5599011251c0744703fd8b8dca9c846736a23a 100644 (file)
@@ -1366,6 +1366,10 @@ Workspace.prototype = {
 
         this._hideAllOverlays();
 
+        if (this._repositionWindowsId > 0) {
+            Mainloop.source_remove(this._repositionWindowsId);
+            this._repositionWindowsId = 0;
+        }
         Main.overview.connect('hidden', Lang.bind(this,
                                                   this._doneLeavingOverview));